package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;
import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.StockInLocalDeptChildWaybillEntity;
import java.util.List;

/**
 * 入库至本部门适配器
 *
 * @author 000432
 * @date 2018/6/4 0004
 */

public class StockInLocalDeptAdapter extends CommonRecycleAdapter<StockInLocalDeptChildWaybillEntity> {

  public StockInLocalDeptAdapter(Context context, List<StockInLocalDeptChildWaybillEntity> dataList) {
    super(context, dataList, R.layout.adapter_stock_in_local_item);
  }

  @Override public void bindData(CommonViewHolder holder, StockInLocalDeptChildWaybillEntity data, int position) {
    holder.setText(R.id.tv_serialNum, position + 1 + "");
    holder.setText(R.id.tv_childWayBillNo, data.getChildWaybillNo());
  }
}
